#include "Assoc.h"

using namespace std;

Assoc::Assoc(Sequence * spacer1, Sequence * virus1, int long_loc1, bool rev_comp1, float ident1)
{
    //ctor
    spacer = spacer1;
    virus = virus1;
    long_loc = long_loc1;
    rev_comp = rev_comp1;
    ident = ident1;
}

bool Assoc::operator==(const Assoc &other){
    if (spacer == other.spacer)
    {
        if (virus == other.virus)
        {
            if (long_loc == other.long_loc)
            {
                if (rev_comp == other.rev_comp)
                {
                    if (ident == other.ident)
                    {
                        return true;
                    }
                }
            }
        }
    }
    return false;
}
